package com.smsc.headend.task.engine.service.push.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smsc.headend.module.push.entity.ConfigNotifyType;
import com.smsc.headend.task.engine.mapper.push.ConfigNotifyTypeMapper;
import com.smsc.headend.task.engine.service.push.ConfigNotifyTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (接口定义)
 *
 * @author wjh
 * @date 2022/6/17 17:14.
 */
@Service
public class ConfigNotifyTypeServiceImpl extends ServiceImpl<ConfigNotifyTypeMapper, ConfigNotifyType> implements ConfigNotifyTypeService {
    @Override
    public List<ConfigNotifyType> getListByModelIdAndServiceType(Long modelId, Integer serviceType) {
        if (null == modelId || null == serviceType) {
            return null;
        }
        return getBaseMapper().getListByModelIdAndServiceType(modelId, serviceType);
    }
}
